package com.zoe.app.filter;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author Zoe.Zhang
 * @date 2021/10/10
 * @description
 */
@Component
public class MyFilter2 implements Filter {
    private static final Logger log = LoggerFactory.getLogger(MyFilter2.class);

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        log.error("myFilter02-start");
        filterChain.doFilter(servletRequest, servletResponse);
        log.error("myFilter02-end");
    }
}
